import java.awt.Color;
import java.awt.Point;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class WhiteBoardModel implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -656608760641794511L;
	ArrayList<Line> lines = new ArrayList<Line>();

	public void addLine(Point start, Point end, Color c) {
		Line line = new Line(start, end, c);
		lines.add(line);

	}

	public List<Line> getLines() {
		return lines;
	}

	public void removeLines(Color c){
		for(int i = 0; i < lines.size(); i++){
			if(lines.get(i).color.equals(c)){
				lines.remove(i);
				i--;
			}
		}
	}


	

}
